package ericXie.com.controller 
{
	import com.adobe.cairngorm.control.FrontController;
	import ericXie.com.command.LoadElementCommand;
	import ericXie.com.command.LoadImgCommand;
	import ericXie.com.command.PopUpWindowCommand;
	import ericXie.com.command.ReadDataCommand;
	import ericXie.com.command.SimpleButtonAshyCommand;
	import ericXie.com.command.StartRouletteCommand;
	import ericXie.com.events.LoadElementEvent;
	import ericXie.com.events.LoadImageEvent;
	import ericXie.com.events.PopUpWindowEvent;
	import ericXie.com.events.ReadDataEvent;
	import ericXie.com.events.SimpleButtonAshyEvent;
	import ericXie.com.events.StartRouletteEvent;
	import ericXie.com.model.MainModel;

	
	/**
	 * 主控制中心
	 * @author EricXie
	 */
	public class MainController extends FrontController 
	{
		private var _model:MainModel = MainModel.getInstance();
		
		//添加获取XML及提示框事件，并分发代理处理
		public function MainController() 
		{
			addCommand(ReadDataEvent.EVENT_ID, ReadDataCommand);
			addCommand(LoadImageEvent.EVENT_ID, LoadImgCommand);
			addCommand(LoadElementEvent.EVENT_ID, LoadElementCommand)
			addCommand(SimpleButtonAshyEvent.EVENT_ID, SimpleButtonAshyCommand);
			addCommand(StartRouletteEvent.EVENT_ID, StartRouletteCommand);
			addCommand(PopUpWindowEvent.EVENT_ID, PopUpWindowCommand);
		}

		
		
	}

}